﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAPDavy.Entities;
using MAPDavy.Repository;
using Microsoft.Practices.Unity;

namespace MAPDavy.BusinessLogic
{
    public class TestBL:ITestBL 
    {
        [Dependency]
        public ITestRepository  TestRepository { get; set; }

        public List<Test> GetFromTestBySubjectId(int subjectId)
        {
            return TestRepository.GetFromTestBySubjectId(subjectId); 
        }


        public List<Test> GetFromTestByTermIdAndGradeId(int termId, int gradeId, Int32 subjectId)
        {
            return TestRepository.GetFromTestByTermIdAndGradeId(termId, gradeId,subjectId); 
        }


        public List<Test> GetFromTestByTermIdAndGradeId(int termId, int gradeId)
        {
            return TestRepository.GetFromTestByTermIdAndGradeId(termId, gradeId);   
        }
    }
}
